package com.ran.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ran.sys.entity.Face;
import com.ran.sys.entity.User;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.io.File;
import java.util.List;
import java.util.Map;

public interface IFaceService extends IService<Face> {
    User faceToken(HttpServletRequest request);

    File dealFile(MultipartFile file);

    String sendRequest(File targetFile, User user);

    boolean insertFace(File file, User user, String template);

    Map<String, Object> sendRequest2(File targetFile, User user, String faceTemplate);

    String getTemplate(User user);

    String sendRequest3(File targetFile);

    User judgingUser(String vector);

    Map<String,Object>sendRequest4(File targetFile);

}